//
//  ReadViewController.h
//  OrderOnline
//
//  Created by YAPPA_3 on 11/29/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "libControlScrollView.h"
#import "libAppViewController.h"
#import "PopoverViewController.h"

@interface ReadViewController : libAppViewController <PopoverViewControllerDelegate>{

	UIScrollView*   m_scrollView;	
	NSMutableArray*	m_listImageData;	
	NSMutableArray*	m_listData;
	NSMutableArray*	m_listImageView;	
	UINavigationBar* m_naviBar;
	UIToolbar* m_toolBar;
	UIBarButtonItem* m_barButonSlide;
	UIBarButtonItem* m_barAdd;
	UIView* m_viewInfo;
	UILabel* m_lblName;
	UILabel* m_lblPrice;
	UILabel* m_lblDiscount;
	UILabel* m_titleName;
	UILabel* m_titlePrice;
	UILabel* m_titleDiscount;
	
	int m_currImageView;
	NSTimer* m_timerScroll;
	BOOL m_isSlideshow;
	int m_typeMenu;
	BOOL m_isInfoHide;
	
	UIPopoverController* popover;
    PopoverViewController* popoverViewController;
}
@property(nonatomic, retain) IBOutlet UIScrollView*   m_scrollView;
@property(nonatomic, retain) IBOutlet UINavigationBar* m_naviBar;
@property(nonatomic, retain) IBOutlet UIToolbar* m_toolBar;
@property(nonatomic, retain) IBOutlet UIBarButtonItem* m_barButonSlide;
@property(nonatomic, retain) IBOutlet UIBarButtonItem* m_barAdd;
@property(nonatomic, retain) IBOutlet UIView* m_viewInfo;
@property(nonatomic, retain) IBOutlet UILabel* m_lblName;
@property(nonatomic, retain) IBOutlet UILabel* m_lblPrice;
@property(nonatomic, retain) IBOutlet UILabel* m_lblDiscount;
@property(nonatomic, retain) IBOutlet UILabel* m_titleName;
@property(nonatomic, retain) IBOutlet UILabel* m_titlePrice;
@property(nonatomic, retain) IBOutlet UILabel* m_titleDiscount;

@property(nonatomic, retain)    UIPopoverController* m_popover;
@property(nonatomic, retain)    PopoverViewController* m_popoverViewController;



- (void) setTitlePage;
- (void) loadImageData;
- (void) loadImageView: (BOOL) isLand;
- (void) addImageViewToScrollView: (BOOL) isLand;
- (void) setFrame;
- (void) changePage:(int)pageNo;
- (int) getPageCurrent;
- (void) changeBackHome: (id) sender;
- (void) setAutoScroll: (id) sender;
- (void)onTimer;
- (void) slideShow: (BOOL) isSlideshow;
- (void) addFoodToOrder: (id) sender;
- (void) setViewInfo: (int) pageCurrent;
- (void) setHideInfoFood: (BOOL) isHide;
- (void) seeInfoFood: (id) sender;
- (void) changeToOrder: (id) sender;
@end

@interface MyScrollView : UIScrollView<UIScrollViewDelegate>
{
	UIView* m_scrollImage;
}
@property(nonatomic, retain) UIView* m_scrollImage;
@end